﻿using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;

#nullable disable

namespace Alison.EFCore.Entity
{
    /// <summary>
    /// 用户
    /// </summary>
    [SwaggerSchema(Title = "用户", Description = "用户Class")]
    public partial class User
    {
        public int Id { get; set; }
        /// <summary>
        /// 账户名称
        /// </summary> 
        [SwaggerSchema(Title = "用户", Description = "账户名称")]
        public string Account { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>  
        [SwaggerSchema(Title = "用户", Description = "用户名")]
        public string Username { get; set; }

        /// <summary>
        /// 地址
        /// </summary> 
        [SwaggerSchema(Title = "用户", Description = "地址")]
        public string Address { get; set; }

        /// <summary>
        /// 电话
        /// </summary> 
        [SwaggerSchema(Title = "用户", Description = "电话")]
        public string Tel { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary> 
        [SwaggerSchema(Title = "用户", Description = "邮箱")]
        public string Email { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [SwaggerSchema(Title = "用户", Description = "密码")]
        public string Password { get; set; }

        /// <summary>
        /// 最后登录时间
        /// </summary>
        [SwaggerSchema(Title = "用户", Description = "最后登录时间")]
        public DateTime? Lastlogintime { get; set; }

        /// <summary>
        /// 最后登出时间
        /// </summary>
        [SwaggerSchema(Title = "用户", Description = "最后登出时间")]
        public DateTime? Lastlogoutime { get; set; }

        /// <summary>
        /// 是否锁定
        /// </summary>
        [SwaggerSchema(Title = "用户", Description = "是否锁定")]
        public int? Islocked { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SwaggerSchema(Title = "用户", Description = "创建时间")]
        public DateTime? Createtime { get; set; }

        /// <summary>
        /// 是否为管理员  0/1 false/true
        /// </summary>
        [SwaggerSchema(Title = "用户", Description = "是否为管理员  0/1 false/true")]
        public int? Flagadmin { get; set; }

        /// <summary>
        /// 是否在线
        /// </summary>
        [SwaggerSchema(Title = "用户", Description = "是否在线")]
        public string Flagonline { get; set; }

        /// <summary>
        /// 登录次数
        /// </summary>
        [SwaggerSchema(Title = "用户", Description = "登录次数")]
        public int? Logincounter { get; set; }
    }
}
